using System;
using System.Collections.Generic;
using System.Drawing;

//using Nairo.Editor.Drawing;

namespace Nairo.Parser.Dom
{
	public class StyleCollection : System.Collections.ArrayList
	{
		public AbstractCSSElement this[string name]
		{
			get {
				object[] elements = this.ToArray();
				foreach (AbstractCSSElement element in elements) {
					if (element.Selector.Equals(name)) {
						return element;
					}
				}
				
				return null;
			}
		}
	}
}
